package pers.hwh.testmongodb.repository;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.mongodb.repository.MongoRepository;
import pers.hwh.testmongodb.entity.User;

/**
 *
 * @Author: Wenhao Huang
 * @Date: 2025/3/14 9:51
 * @Version: 1.0
 * @Description:
 */
public interface UserRepository extends MongoRepository<User, String> {
	Page<User> findByPasswordOrderByRegisterTimeDesc(String pwd, Pageable pageable);

}